<?xml version="1.0" encoding="windows-1250"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="windows-1250"/>
<xsl:template match="/">
<xsl:element name="hlásky">
<xsl:for-each select="abeceda/*">
<xsl:choose>
<xsl:when test=".='A'or .='E'or .='I'or .='Y'or .='O'or .='U'">
<xsl:apply-templates select=".">
<xsl:with-param name="typ">samohláska</xsl:with-param>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:element>
</xsl:template>
<xsl:template match="*">
<xsl:param name="typ">souhláska</xsl:param>
<xsl:copy>
<xsl:attribute name="typ">
<xsl:value-of select="$typ"/>
</xsl:attribute>
<xsl:value-of select="."/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>